package com.gaofans.vertx.boot.web.route;

import io.vertx.ext.web.Router;

import java.util.Objects;
import java.util.function.Consumer;

/**
 * router扩展接口
 * @author gaofans
 */
public interface RouterExtConfigurer extends Consumer<Router> {

    @Override
    default Consumer<Router> andThen(Consumer<? super Router> router) {
        Objects.requireNonNull(router);
        return (Router t) -> { accept(t); router.accept(t); };
    }
}
